package tedu.week04.day02_thread.lesson4;

/**
 * <pre>
 *      生产者与消费者--测试类.
 * </pre>
 *
 * @author : resty
 * @date : 2019年07月09日    15时
 **/
public class Demo {
    public static void main(String[] args){
        Info info = new Info();
        Producer producer = new Producer(info);
        Consumer consumer = new Consumer(info);
        new Thread(producer).start();
        new Thread(consumer).start();
    }
}
